const {
	loadAPIDetail,
} = require('./load-datas')
const {
	loadAPIDetailMethod,
} = require('./tree-module-methods')

module.exports = function(apiTestComp) {
	let {
		treeComp,
	} = apiTestComp

	treeComp.tree({
		onClick(node) {
			loadAPIDetailMethod.call(apiTestComp, node)
		},
	})
}